<template>
  <label class="fan-radio" role="radio">
    <span class="fan-radio-input">
      <span class="fan-radio_inner"></span>
      <input class="fan-radio_original" type="radio" @change="onChangeRadioClick()">
    </span>
    <span class="fan-radio_label"><slot></slot></span>
  </label>
</template>

<script>
export default {
  props: [ 'value', ],
  data(){
    return { btnClass: '', }
  },
  methods: {
    onChangeRadioClick(){

    },
  },
}
</script>

<style>
.fan-radio{
  color: #606266;
  font-weight: 500;
  line-height: 1;
  position: relative;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  outline: none;
  font-size: 14px;
  margin-right: 30px;
}
.fan-radio-input{
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  display: inline-block;
  line-height: 1;
  position: relative;
  vertical-align: middle;
}
.fan-radio_inner{
  border: 1px solid #dcdfe6;
  border-radius: 100%;
  width: 14px;
  height: 14px;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
}
.fan-radio_inner::after{
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background-color: #fff;
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0);
  /* transition: transform .15s ease-in; */
}
.checked .fan-radio_inner {
  border-color: #33a3dc;
  background: #33a3dc;
}
.checked .fan-radio_inner::after{
  transform: translate(-50%,-50%) scale(1);
}
.fan-radio_original{
  opacity: 0;
  outline: none;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
}
.fan-radio_label{
  color: #606266;
  font-weight: 500;
  line-height: 1;
  position: relative;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  outline: none;
  font-size: 14px;
  margin-right: 30px;
}
</style>